MPI_COMPILE_FLAGS = $(shell mpicc --showme:compile)
MPI_LINK_FLAGS = $(shell mpicc --showme:link) -fopenmp

MY_APP=main_mpi
CC=gcc-4.2

all: $(MY_APP).c
	$(CC) $(MPI_COMPILE_FLAGS) $(MY_APP).c $(MPI_LINK_FLAGS) -o $(MY_APP)

